<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>测试jsForEach</title>
    <script src="../zujian/han/han.js"></script>
</head>
<body>
<script type="text/javascript">
    var k=[1,2,3];
    //第一参数是数组里面的值,第二个参数是该值的索引位置,从0开始。第三个是该数组本身
    k.forEach((value, index, array) => {
        hwrite(value,1,2)
        hwrite(index,3,4)
        hwrite(array,5,6)
    })
</script>
</body>
</html>